// var button = document.querySelector('.button')
// button.addEventListener('click',function(){
//   console.log('button is clicked !!!')
// })

Promise.resolve().then(()=>{
  console.log(0)
  // return Promise.resolve(4)
  return 999
}).then(res=>{
  console.log(res)
})

Promise.resolve().then(()=>{
  console.log(1)
}).then(()=>{
  console.log(2)
}).then(()=>{
  console.log(3)
}).then(()=>{
  console.log(5)
}).then(()=>{
  console.log(6)
})

function* go(){
  const a = yield Promise.resolve(123)
  console.log(a)
}

const goFunc = go()
goFunc.next()
goFunc.next()

const arr =  Array.from('foo')
console.log(arr)
